package com.example.demo.action.endpoint;/**
 * Created by kete on 2018-11-30.
 */


import com.example.demo.action.common.NettySocketHolder;
import io.netty.channel.socket.nio.NioSocketChannel;
import org.springframework.boot.actuate.endpoint.AbstractEndpoint;

import java.util.Map;

/**
 * 作者：kete
 * 创建时间：2018-11-30 17:00
 * 功能描述：
 * 版本：
 */
public class ClientPoint extends  AbstractEndpoint<Map<Long,NioSocketChannel>>{

    public ClientPoint(String id) {
        super(id,false);
    }

    @Override
    public Map<Long, NioSocketChannel> invoke() {
        return NettySocketHolder.getMap();
    }
}
